package com.zelix;

import java.awt.Component;
import java.awt.Container;
import java.awt.event.*;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.JTextComponent;

public class y3 extends x3
        implements ItemListener, ListSelectionListener, FocusListener, ActionListener {

    JCheckBox f;
    JComboBox g;
    DefaultComboBoxModel h;
    private t3 i;
    private DefaultListModel j;
    JTextField k;
    JTextField l;
    JTextField m;
    boolean n;
    static String o = z(z("{qz\000\031c>k\n\005pxwR\002v}f)\000s>g\n\nveo\033$ryd\007\030='8\f\003{en\001]@yg\033\004*}b\027Dvs`\n\037d]l\013\005qyf\035/x}a\000.xh-\013\tqqv\003\030@yg\033\004;0n\000\b~vj\n\036[yp\033Bsue\016\031{dT\006\bcx*T\rtsf\034\037Z\177g\006\n~uq,\003zrl-\003o>o\n\nc-6T\rtsf\034\037Z\177g\006\n~uq,\003zrl-\003o>w\000\034*%8\016\017tup\034!xtj\t\005rb@\000\001u\177A\000\0249gj\013\030\177-`\000\000b}m^;~tw\007Wz\177g\006\n~uq#\005dd-\003\tqd>ZWz\177g\006\n~uq#\005dd-\033\003g-b\f\017rcp\"\003sye\006\teSl\002\016xRl\027Bu\177w\033\003z;6T\001xtj\t\005rbO\006\037c>t\006\bcx>\f\003{en\001]@yg\033\004,}l\013\005qyf\035 ~cwA\016xdw\000\001*sl\001\030vym\n\0369rl\033\030x}.\007\005ydO\r\0009tf\t\rb|w'\t~wk\033A% 8\003\ruuo8\005sdkR\001vh+\001\rzuO\r\0009tf\t\rb|w8\005sdkCLrhw\n\002scO\r\0009tf\t\rb|w8\005sdkCL~}s\003\tzum\033\037[roA\brvb\032\000cGj\013\030\17798\001\rzuO\r\0009sf\001\030rbZR\002v}f)\000s>`\n\002cuq6Wyqn\n u|-\003\tqd>\016\017tup\034!xtj\t\005rb@\000\001u\177A\000\0249bj\b\004c;2ZWyqn\n u|-\030\005sdkR\000vrf\003;~tw\007Wyqn\n*{t-\003\tqd>\001\rzuO\r\0009bj\b\004c;2T\002v}f)\000s>w\000\034*%8\001\rzuE\003\b9bj\b\004c-`\000\002cqj\001\te>q\006\013\177d.ZWrhw\n\002scO\r\0009sf\001\030rbZR\todf\001\bdVo\013Btum\033\teI8\n\024cum\013\037[roA\000rvwR\rtsf\034\037Z\177g\006\n~uq,\003zrl-\003o>q\006\013\177d(^Y,u{\033\tytp#\016{>t\006\bcx>\003\ruuo8\005sdkT\todf\001\bdVo\013B{ue\033Qrhw\n\002scO\r\0009bj\b\004c;2T\todf\001\bdVo\013Bc\177sR\002v}f)\000s>a\000\030c\177nDY,u{\033\tytp)\000s>q\006\013\177d>\f\003ydb\006\002rb-\035\005pxwBY,yn\037\000r}f\001\030d\\a\003Btum\033\teI>\006\001g|f\002\tydp)\000s>`\n\002cuq6W~}s\003\tzum\033\037[roA\000rvwR\rtsf\034\037Z\177g\006\n~uq,\003zrl-\003o>q\006\013\177d(^Y,yn\037\000r}f\001\030d\\a\003B`yg\033\004*|b\r\t{Gj\013\030\177+j\002\034{un\n\002ccE\003\b9|f\t\030*yn\037\000r}f\001\030d\\a\003Beyd\007\030<!8\006\001g|f\002\tydp)\000s>w\000\034*u{\033\tytp)\000s>a\000\030c\177nDY,yn\037\000r}f\001\030dVo\013Beyd\007\030*sl\001\030vym\n\0369bj\b\004c=6T\004~~w#\016{>o\n\nc-6T\004~~w#\016{>a\000\030c\177nR\017x~w\016\005yuqA\016xdw\000\001:%8\007\005ydO\r\0009bj\b\004c-`\000\002cqj\001\te>q\006\013\177d.ZW"));
    static String p = z(z("\177yd\007\te\\f\031\t{U{\f\000btf,\004|>o\n\nc-j\002\034{un\n\002ccO\r\0009|f\t\030,xj\b\004rbO\n\032r|F\027\017{eg\n/\177{-\033\003g0>O\005z`o\n\001r~w\034 u|-\r\003cdl\002G\""));
    private static String z[];

    public y3(JFrame jframe, jt jt1, boolean flag, int i1) {
        super(jframe, jt1, i1);
        n = flag;
        b();
    }

    public void actionPerformed(ActionEvent actionevent) {
        Object obj = actionevent.getSource();
        a(obj);
    }

    void a() {
        op op1;
        op1 = super.c.j();
        if (op1 != null) {
            if (op1.t()) {
                g.setSelectedIndex(1);
            } else if (op1.q()) {
                g.setSelectedIndex(2);
            } else {
                g.setSelectedIndex(0);
            }
        }
        if (op1.c())
            i.addSelectionInterval(0, 0);
        if (op1.e())
            i.addSelectionInterval(1, 1);
        if (op1.f())
            i.addSelectionInterval(2, 2);
        if (op1.h())
            i.addSelectionInterval(3, 3);
        if (op1.i())
            i.addSelectionInterval(4, 4);
        if (op1.j())
            i.addSelectionInterval(5, 5);
    }

    public void focusGained(FocusEvent focusevent) {
        Object obj = focusevent.getSource();
        if (obj == k) {
            super.e.setText(z[30]);
        } else if (obj == l) {
            super.e.setText(z[31]);
        } else if (obj == m)
            super.e.setText(z[29]);
    }

    public void focusLost(FocusEvent focusevent) {
        super.e.setText(" ");
        Object obj = focusevent.getSource();
        a(obj);
    }

    public void itemStateChanged(ItemEvent itemevent) {
        Object obj = itemevent.getSource();
        if (obj == g) {
            if (itemevent.getStateChange() == 1) {
                switch (g.getSelectedIndex()) {
                    case 0: // '\0'
                        super.c.g();
                        break;

                    case 1: // '\001'
                        super.c.F();
                        break;

                    case 2: // '\002'
                        super.c.E();
                        break;
                }
            }
        } else if (obj == f) {
            if (itemevent.getStateChange() == 1) {
                super.c.h(true);
            } else {
                super.c.h(false);
            }
        }
    }

    void a(Object obj) {
        if (obj == k) {
            String s = k.getText().trim();
            if (s.length() == 0) {
                k.setText(super.c.l());
                f2.a(super.b, z[24], z[25]);
            } else if (s.indexOf('.') != -1 || s.indexOf('/') != -1) {
                k.setText(super.c.l());
                f2.a(super.b, z[24], z[26]);
            } else if (s.endsWith("^")) {
                s = s.substring(0, s.length() - 1).trim();
                k.setText(s);
            }
            super.c.a(s);
        } else if (obj == l) {
            String s1 = l.getText().trim();
            if (s1.indexOf("*") != -1) {
                l.setText(super.c.o());
                f2.a(super.b, z[24], z[28]);
            } else {
                super.c.c(s1);
            }
        } else if (obj == m) {
            String s2 = m.getText().trim();
            if (s2.indexOf("*") != -1) {
                m.setText(super.c.r());
                f2.a(super.b, z[24], z[27]);
            } else {
                super.c.f(s2);
            }
        }
    }

    public void b() {
        j0 j0_1 = new j0(this);
        setLayout(j0_1);
        h = new DefaultComboBoxModel();
        g = new JComboBox(h);
        j = new DefaultListModel();
        i = new t3(j);
        i.setSelectionMode(2);
        JLabel jlabel = new JLabel(z[15], 2);
        k = new JTextField();
        JLabel jlabel1 = new JLabel(z[16], 2);
        l = new JTextField();
        JLabel jlabel2 = new JLabel(z[3], 2);
        m = new JTextField();
        super.e = new JLabel(" ");
        add(g, z[12]);
        add(new q4(i), z[9]);
        add(k, z[13]);
        add(l, z[5]);
        add(m, z[11]);
        add(jlabel, z[14]);
        add(jlabel1, z[0]);
        add(jlabel2, z[19]);
        add(super.e, z[6]);
        StringBuffer stringbuffer = new StringBuffer(o);
        if (n) {
            switch (super.a) {
                default:
                    break;

                case 1: // '\001'
                    f = new JCheckBox(z[10], super.c.z());
                    break;

                case 2: // '\002'
                    f = new JCheckBox(z[7], super.c.z());
                    break;
            }
            f.addItemListener(this);
            add(f, z[17]);
            stringbuffer.append(p);
        }
        j0_1.e(stringbuffer.toString());
        h.addElement(z[20]);
        h.addElement(z[21]);
        h.addElement(z[2]);
        j.addElement(z[22]);
        j.addElement(z[8]);
        j.addElement(z[18]);
        j.addElement(z[1]);
        j.addElement(z[4]);
        j.addElement(z[23]);
        a();
        k.setText(super.c.l());
        l.setText(super.c.o());
        m.setText(super.c.r());
        g.addItemListener(this);
        i.addListSelectionListener(this);
        k.addFocusListener(this);
        l.addFocusListener(this);
        m.addFocusListener(this);
        k.addActionListener(this);
        l.addActionListener(this);
        m.addActionListener(this);
    }

    public void valueChanged(ListSelectionEvent listselectionevent) {
        t3 t3_1;
        int ai[];
        StringBuffer stringbuffer;
        int i1;
        t3_1 = (t3) listselectionevent.getSource();
        ai = t3_1.getSelectedIndices();
        stringbuffer = new StringBuffer();
        for (i1 = 0; i1 < ai.length; i1++) {
            stringbuffer.append(ai[i1] + ",");
        }
        int j1;
        int k1;
        j1 = j.getSize();
        for (k1 = 0; k1 < j1; k1++) {
            switch (k1) {
                case 0: // '\0'
                    super.c.b(t3_1.isSelectedIndex(k1));
                    break;
                case 1: // '\001'
                    super.c.c(t3_1.isSelectedIndex(k1));
                    break;

                case 2: // '\002'
                    super.c.d(t3_1.isSelectedIndex(k1));
                    break;

                case 3: // '\003'
                    super.c.e(t3_1.isSelectedIndex(k1));
                    break;

                case 4: // '\004'
                    super.c.f(t3_1.isSelectedIndex(k1));
                    break;
                case 5: // '\005'
                    super.c.g(t3_1.isSelectedIndex(k1));
                    break;
            }
        }
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x6c;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x17;
                    break;
                case 1:
                    key = 16;
                    break;
                case 2:
                    key = 3;
                    break;
                case 3:
                    key = 111;
                    break;
                default:
                    key = 108;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[] = new String[32];
        as[0] = z(z("rhw\n\002scO\r\0"));
        as[1] = z(z("6qa\034\030eq`\033"));
        as[2] = z(z("gq`\004\rpu"));
        as[3] = z(z("^}s\003\tzum\033\037-"));
        as[4] = z(z("6vj\001\r{"));
        as[5] = z(z("rhw\n\002scE\003\b"));
        as[6] = z(z("\177ym\033 u|"));
        as[7] = z(z("Rh`\003\031su#\f\000vcpO\rd0t\n\000{"));
        as[8] = z(z("qym\016\0"));
        as[9] = z(z("z\177g\006\n~uq#\005dd"));
        as[10] = z(z("Rh`\003\031su#\f\000vcpO\002v}fO\rd0t\n\000{"));
        as[11] = z(z("~}s\003\tzum\033\037Q|g"));
        as[12] = z(z("vs`\n\037d]l\013\005qyf\035/x}a\000.xh"));
        as[13] = z(z("yqn\n*{t"));
        as[14] = z(z("yqn\n u|"));
        as[15] = z(z("Yqn\nV"));
        as[16] = z(z("Rhw\n\002sc9"));
        as[17] = z(z("\177yd\007\te\\f\031\t{U{\f\000btf,\004|"));
        as[18] = z(z("~~w\n\036qq`\n"));
        as[19] = z(z("~}s\003\tzum\033\037[ro"));
        as[20] = z(z("+q`\f\tdc#\001\003c0p\037\ttye\006\ts."));
        as[21] = z(z("gea\003\005t"));
        as[22] = z(z("vrp\033\036vsw"));
        as[23] = z(z("6ym\033\tevb\f\t"));
        as[24] = z(z("Rbq\000\036"));
        as[25] = z(z("T|b\034\0377~b\002\t7}v\034\0307rfO\037gu`\006\n~ugALQyf\003\b7bf\034\030xbf\013B"));
        as[26] = z(z("T|b\034\0377~b\002\t7}v\034\0307rfO\031yav\016\000~vj\n\b90F\001\030rb#\037\rt{b\b\t7av\016\000~vj\n\036d0j\001LcxfONT\177m\033\r~~j\001\0137`b\f\007vwfMLgqm\n\00090E\006\t{t#\035\tddl\035\ts>"));
        as[27] = z(z("^}s\003\tzum\033\0377so\016\037d0m\016\001rc#\f\ry~l\033Lt\177m\033\r~~#\030\005{t`\016\036sc-O*~uo\013Leup\033\003eugA"));
        as[28] = z(z("Rhw\n\002sc#\f\000vcpO\002v}fO\017v~m\000\0307sl\001\030vymO\033~|g\f\retpALQyf\003\b7bf\034\030xbf\013B"));
        as[29] = z(z("R~w\n\0367sl\002\001v0p\n\034vbb\033\ts0o\006\037c0l\tLqeo\003\0257av\016\000~vj\n\b7so\016\037d0m\016\001rc-O!vi#\001\003c0`\000\002cqj\001L`yo\013\017vbg\034B"));
        as[30] = z(z("R~w\n\0367~b\002\t7\177eO\030\177u#\f\000vcpALZqzO\017x~w\016\005y0w\007\t72)ML`yo\013\017vbgA"));
        as[31] = z(z("R~w\n\0367vv\003\000n0r\032\r{ye\006\ts0`\003\rdc#\001\rzu-O!vi#\001\003c0`\000\002cqj\001L`yo\013\017vbg\034B"));
        z = as;
    }
}
